//需要全局的组件
import svgIcon from './svgIcon/index.vue'
//引入element图标，变成全局组件
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import category from './category/index.vue'
//全局组件对象
const allGloablComponent: any = { svgIcon, category }
export default {
  install(app: any) {
    Object.keys(allGloablComponent).forEach((item) => {
      app.component(item, allGloablComponent[item])
    })
    for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
      app.component(key, component)
    }
  },
}
